// 
// Helpers
// =================================================

// Alignment
.text-left {
  text-align: left;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-justify {
  text-align: justify;
}

.text-nowrap {
  white-space: nowrap;
}

// Transformation
.text-lowercase {
  text-transform: lowercase;
}

.text-uppercase {
  text-transform: uppercase;
}

.text-capitalize {
  text-transform: capitalize;
}

// Center-align a block level element.
.center-block {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

// Clearfix. http://nicolasgallagher.com/micro-clearfix-hack/
.clearfix {
  clearfix();
}

.pullquote {
  width: 45%;

  &.left {
    float: left;
    margin-left: 5px;
    margin-right: 10px;
  }

  &.right {
    float: right;
    margin-left: 10px;
    margin-right: 5px;
  }
}

.affix {
  position: fixed;
}

.translation {
  color: $grey-dark;
  font-size: $font-size-small;
  margin-top: -20px;
}

// https://davidwalsh.name/detect-scrollbar-width
.scrollbar-measure {
  height: 100px;
  overflow: scroll;
  position: absolute;
  top: -9999px;
  width: 100px;
}

.use-motion .motion-element {
  opacity: 0;
}
